Reproducible builds requires that the build time stamp is not
authorPaul Gevers <elbrus@debian.org>
Thu, 13 Jan 2022 20:54:24 +0000 (20:54 +0000)
committerAbou Al Montacir <abou.almontacir@sfr.fr>
Thu, 13 Jan 2022 20:54:24 +0000 (20:54 +0000)
commitfdfbcfa3d52406dbf078c5e9db86394dcc71f657
treeb5d9d8c86fd8410f36fe67604dfd3830993ba104
parenta32b9a55c248bf26115d47fc8e7649105155198c
Reproducible builds requires that the build time stamp is not

recorded in binaries. In FPC they are fuild in via the $INCLUDE %DATE%
directive which calls getdatestr in globals.pas. To allow reproducible builds
we should honor the SOURCE_DATE_EPOCH environment variable. To not depend on
the dateutil unit, we include the required code from that package here.

Gbp-Pq: Name honor_SOURCE_DATE_EPOCH_in_date.patch
fpcsrc/compiler/globals.pas